import request from '@/utils/request'

export function getrolelist(data) {
    return request({
        url: 'api/role/getrolelist',
        method: 'post',
        data: data
    })
}
/**
 * 基础信息模块 相关接口
 */
export function getagentlist(data) {
    return request({
        url: 'api/agent/getagentlist',
        method: 'post',
        data: data
    })
}
export function addagent(data) {
    return request({
        url: 'api/agent/addagent',
        method: 'post',
        data: data
    })
}
export function editagent(data) {
    return request({
        url: 'api/agent/editagent',
        method: 'post',
        data: data
    })
}
export function delagent(data) {
    return request({
        url: 'api/agent/delagent',
        method: 'post',
        data: data
    })
}
//  //////////// 学校
export function getSchoollist(data) {
    return request({
        url: 'api/school/getschoollist',
        method: 'post',
        data: data
    })
}
export function addSchool(data) {
    return request({
        url: 'api/school/addschool',
        method: 'post',
        data: data
    })
}
export function editSchool(data) {
    return request({
        url: 'api/school/editschool',
        method: 'post',
        data: data
    })
}
export function delSchool(data) {
    return request({
        url: 'api/school/delschool',
        method: 'post',
        data: data
    })
}
// export function getSchoolmodinfo(data) {
//     return request({
//         url: 'api/school/getschoolmodinfo',
//         method: 'post',
//         data: data
//     })
// }
// export function getSchoolmodinfo(data) {
//     return request({
//         url: 'api/school/getschoolmodinfo',
//         method: 'post',
//         data: data
//     })
// }